package com.biggerboy.controller;

import com.biggerboy.domain.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class UserController {

    @RequestMapping(value = "/user/detail/{id}")
    public User getUser(@PathVariable Long id) {
        log.info("用户服务：查询用户信息");
        User user = new User();
        user.setId(id);
        user.setUserName("username:" + id);
        return user;
    }
}
